package org.opengauss.evaluate.paeser;

import org.opengauss.evaluate.paeser.entry.CommandEntry;

public class ParserController implements Runnable {

    private String[] args;

    /**
     * get
     *
     * @return String[]
     */
    public String[] getArgs() {
        return args;
    }

    /**
     * set
     *
     * @param args String[]
     */
    public void setArgs(String[] args) {
        this.args = args;
    }

    private void startParser() {
        CommandEntry commandEntry = new CommandEntry();
        commandEntry.mainEntry(args);
    }

    /**
     * implement the run method in Runnable
     */
    public void run() {
        startParser();
    }
}
